function _nonzero_return() {
    RETVAL=$?
    [ $RETVAL -ne 0 ] && echo -e "\e[38;5;196m[$RETVAL]#" || echo "#"
}
export PS1='\[\e[38;5;133m\]\u\[\e[38;5;134m\]@\[\e[38;5;139m\]\h \[\e[38;5;147m\]\w\[\e[0m\] $(_nonzero_return) \[\e[0m\]'

export PS1='\[\e[38;5;133m\]\u\[\e[38;5;134m\]@\[\e[38;5;139m\]\h \[\e[38;5;146m\]\w\[\e[0m\] $(RETVAL=$?;[ $RETVAL -ne 0 ] && echo "\[\e[38;5;196m\][$RETVAL]❯" || echo "\[\e[38;5;46m\]❯") \[\e[0m\]'

==========================
c0=$(tput sgr0)
c1=$(tput setaf 133)
c2=$(tput setaf 134)
c3=$(tput setaf 139)
c4=$(tput setaf 146)
c5=$(tput setaf 196)
c6=$(tput setaf 46)
export PS1='\[${c1}\]\u\[${c2}\]@\[${c3}\]\h \[${c4}\]\w\[${c0}\] $(RETVAL=$?;[ $RETVAL -ne 0 ] && echo "\[${c5}\][$RETVAL]❯" || echo "\[${c6}\]❯") \[${c0}\]'

> github.com search dotfiles